<script src="js template/stupidtable.js?dev"></script>
<script>
    $(function(){
        $("#bangHV").stupidtable();
    });
</script>
<div>
	<fieldset>
		<table class= "tieuchi">
			<tr class='legend'>
					<td colspan="2" align="center" >Xem danh sách hội viên</td>
				</tr>
			<tr>
				<td>Tên hội viên</td><td><input id="tenhvtim"/></td>
			</tr>
			<tr>
				<td>Mã hội viên</td><td><input id="mahvtim"/></td>
			</tr>
			<tr>
				<td>Tên chi hội</td>
				<td>
					<select id='chihoi'>
						<option value="tatca">Tất cả</option>
						<?php
							include("handle/config.php");
							$sql = "SELECT TENCH FROM CHIHOI";
							$result=mysqli_query($con,$sql);
							while($row=mysqli_fetch_array($result))
							{
								echo "<option  value='$row[TENCH]'>$row[TENCH]</option>";
							}
						?>
					</select>
				</td>
			</tr>
			<tr>
				<td  colspan="2" align="center"><button  id="xemDSHV" type="button">Tìm</button></td>
			</tr>
		</table>
	</fieldset>
</div>
<div>
	<fieldset>
	<table class='thongtinhv' id="bangHV">
    	<thead>
		<tr class="tablehead">
			<th data-sort="string-ins" id='maHV'>Mã hội viên</th>
			<th data-sort="string-ins" id='tenHV'>Họ tên</th>
			<th data-sort="string-ins" id='chihoi'>Chi hội </th>
			<th data-sort="string-ins" id='chucvu'>Chức vụ</th>
			<th data-sort="string-ins" id='nganh'>Ngành</th>
			<th data-sort="string-ins" id='khoa'>Khoa</th>
		</tr>
       	</thead>
	</table>
	</fieldset>
</div>